package com.yicong.ants.bean.scenic;

import com.contrarywind.interfaces.IPickerViewData;

/**
 * 城市列表
 *
 * @author cch
 * @version 2020/10/13
 */
public class CityItemBean implements IPickerViewData {
    private String city_id;
    private String name;

    public CityItemBean() {
    }

    @Override
    public String getPickerViewText() {
        return name;
    }

    public String getCity_id() {
        return this.city_id;
    }

    public String getName() {
        return this.name;
    }

    public void setCity_id(String city_id) {
        this.city_id = city_id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof CityItemBean)) return false;
        final CityItemBean other = (CityItemBean) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$city_id = this.getCity_id();
        final Object other$city_id = other.getCity_id();
        if (this$city_id == null ? other$city_id != null : !this$city_id.equals(other$city_id))
            return false;
        final Object this$name = this.getName();
        final Object other$name = other.getName();
        if (this$name == null ? other$name != null : !this$name.equals(other$name)) return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof CityItemBean;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $city_id = this.getCity_id();
        result = result * PRIME + ($city_id == null ? 43 : $city_id.hashCode());
        final Object $name = this.getName();
        result = result * PRIME + ($name == null ? 43 : $name.hashCode());
        return result;
    }

    public String toString() {
        return "CityItemBean(city_id=" + this.getCity_id() + ", name=" + this.getName() + ")";
    }
}
